package models;

import java.util.List;

import javax.persistence.Transient;

import models.mappers.SystemMenuMapper;
import org.apache.ibatis.session.SqlSession;

import com.aton.db.SessionFactory;

public class SystemMenu implements java.io.Serializable {
		public final static String TABLE_NAME="system_menu";
		public String menuid;
		public String menuname;
		public String menuurl;
		public String parentid;
		public Boolean isflag;
		public boolean isend;
		public String icos;
		@Transient
		public List<SystemMenu> children;
		public SystemMenu(){
			
		}
		public SystemMenu(String menuid, String menuname, String menuurl,
				String parentid,Boolean isflag,String icos) {
			super();
			this.menuid = menuid;
			this.menuname = menuname;
			this.menuurl = menuurl;
			this.parentid = parentid;
			this.isflag=isflag;
			this.icos=icos;
		}
		
		public String getMenuid() {
			return menuid;
		}
		public void setMenuid(String menuid) {
			this.menuid = menuid;
		}
		public String getMenuname() {
			return menuname;
		}
		public void setMenuname(String menuname) {
			this.menuname = menuname;
		}
		public String getMenuurl() {
			return menuurl;
		}
		public void setMenuurl(String menuurl) {
			this.menuurl = menuurl;
		}
		public String getParentid() {
			return parentid;
		}
		public void setParentid(String parentid) {
			this.parentid = parentid;
		}
		public Boolean getIsflag() {
			return isflag;
		}
		public void setIsflag(Boolean isflag) {
			this.isflag = isflag;
		}
		public List<SystemMenu> getChildren() {
			return children;
		}
		public void setChildren(List<SystemMenu> children) {
			this.children = children;
		}
		public String getIcos() {
			return icos;
		}
		public void setIcos(String icos) {
			this.icos = icos;
		}
		
}
